package com.shark.springbootcms.mapper;

import com.shark.springbootcms.form.UserForm;
import com.shark.springbootcms.model.User;
import com.shark.springbootcms.vo.UserRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    void register(User user);

    User selectUserByMobile(@Param("mobile") String email, @Param("password") String password);

    List<UserRoleVo> userList(UserForm form);

    void editUser(User user);

    void deleteUserById(String id);

    void insertUserRole(@Param("userId") String userId,@Param("list") List<String> roles);

    void deleteUserRole(String id);
}
